package com.example.springconfiguration;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PropertiesController {
    @Value("${mykey1}")
    private String mykey1;

    @Value("${mykey2}")
    private String mykey2;

    @Value("${mykey3}")
    private String mykey3;
    @RequestMapping("/getkey")
    public String getKey() {
        return mykey1 + " | " + mykey2 + " | " + mykey3;
    }
}
